<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>仿12306管理系统</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/sellticket_war_exploded/back/css/common.css" />
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/sellticket_war_exploded/back/css/main.css" />
</head>

<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none">
                <a href="index.html" class="navbar-brand">仿12306后台管理</a>
            </h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="http://localhost:8080/sellticket_war_exploded/back/index.jsp">首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="#">${loginUser.user_name}</a></li>
                <li><a href="http://localhost:8080/sellticket_war_exploded/user/logout">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="../user/getUserByPage?page=1"><i class="icon-font">&#xe008;</i>用户管理</a></li>
                        <li><a href="../station/getStationByPage?page=1"><i class="icon-font">&#xe005;</i>车站管理</a></li>
                        <li><a href="../ticket/getTicketByPage?page=1"><i class="icon-font">&#xe004;</i>车次管理</a></li>
                        <li><a href="../order/getOrderByPage?page=1"><i class="icon-font">&#xe012;</i>订单管理</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font"></i>
                <a href="http://localhost:8080/sellticket_war_exploded/back/index.jsp">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">车站信息管理</span>
            </div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="http://localhost:8080/sellticket_war_exploded/station/getStationByName" method="get">
                    <input type="hidden" name="page" value="1">
                    <table class="search-tab">
                        <tr>
                            <th width="70">关键字:</th>
                            <td>
                                <input class="common-text" placeholder="关键字" value="${station_name}" name="station_name" type="text" />
                            </td>
                            <td>
                                <input class="btn btn-primary btn2" name="sub" value="查询" type="submit"/>
                            </td>
                        </tr>
                </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-title">
                <div class="result-list">
                    <a href="http://localhost:8080/sellticket_war_exploded/back/addstation.jsp"><i class="icon-font"></i>添加车站</a>
                </div>
            </div>
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <tr>
                        <th>车站ID</th>
                        <th>车站名</th>
                        <th>车站地址</th>
                        <th>操作</th>
                    </tr>
                    <c:forEach var="station" items="${data.list}">
                    <tr>
                        <td>${station.station_id}</td>
                        <td>${station.station_name}</td>
                        <td>${station.station_address}</td>
                        <td>
                            <a class="link-update" href="http://localhost:8080/sellticket_war_exploded/station/getStationById?station_id=${station.station_id}">修改</a>
                        </td>
                    </tr>
                    </c:forEach>
                </table>
                <div class="list-page">
                    <a href="http://localhost:8080/sellticket_war_exploded/station/getStationByName?page=1&station_name=${station_name}">首页</a>
                    <a href="http://localhost:8080/sellticket_war_exploded/station/getStationByName?page=${data.prePage}&station_name=${station_name}">上一页</a>
                    ${data.pageNum}/${data.pages}
                    <a href="http://localhost:8080/sellticket_war_exploded/station/getStationByName?page=${data.nextPage}&station_name=${station_name}">下一页</a>
                    <a href="http://localhost:8080/sellticket_war_exploded/station/getStationByName?page=${data.pages}&station_name=${station_name}">尾页</a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

</html>
